package com.liwei.services;

import com.liwei.beans.User;
import com.liwei.mapper.UserMapper;
import org.apache.commons.codec.digest.DigestUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class UserServicesImp implements UserServices {
    @Autowired
    UserMapper userMapper;
    @Override
    public User getByUser(String loginAct, String loginPwd) {
        String loginPwdTemp = DigestUtils.md5Hex(loginPwd);
        return userMapper.getByUser(loginAct,loginPwdTemp);
    }
}
